<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="clearfix"></div>
<div class="row">
  <div class="col-md-12 col-sm-12 col-xs-12">
    <div class="x_panel">
      <div class="x_title">
        <h2>修改采购计划基础信息 <i class="fa fa-user"></i><small>${devUserSession.devName}</small></h2>
             <div class="clearfix"></div>
      </div>
      <div class="x_content">
        <form class="form-horizontal form-label-left" action="${pageContext.request.contextPath}/caigou/upd" method="post" enctype="multipart/form-data">
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">采购编号 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input id="softwareName" class="form-control col-md-7 col-xs-12" 
               data-validate-length-range="20" data-validate-words="1" name="planId"  required="required"
               placeholder="" type="text" value="${plan.planId }">
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">制单日期<fmt:formatDate value="${plan.planData }" type="both" dateStyle="default" timeStyle="default"></fmt:formatDate><span class="required">*</span>
           </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input id="APKName" class="form-control col-md-7 col-xs-12" 
              	data-validate-length-range="20" data-validate-words="1" name="planData"   required="required"
              	placeholder=""  value="<fmt:formatDate value='${plan.planData }' type='date' pattern='yyyy-MM-dd'/>" type="date"/>
            </div>
          </div>
           <%-- <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">添加采购单明细 <span class="required">*</span>
            </label>
              
            <div class="col-md-6 col-sm-6 col-xs-12">
             <a href="${pageContext.request.contextPath}/caigou/add" class="btn btn-success btn-sm">添加采购计划</a>
            </div>
          </div> --%>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">总金额 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input id="supportROM" class="form-control col-md-7 col-xs-12" name="planPrice" 
              	data-validate-length-range="20" data-validate-words="1"   required="required"
              	placeholder="" type="text" value="${plan.planPrice } " readonly="readonly">
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">经手人 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
            <select name="planHandled" class="form-control">
									<c:if test="${suppiler != null }">
									   <option value="${plan.planHandled }">${plan.planHandled }</option>
									   <c:forEach var="suppiler" items="${suppiler}">
									   		<option value="${suppiler.supplierName}">${suppiler.supplierName}</option>
									   </c:forEach>
									</c:if>
        						</select>
             <%--  <input id="supportROM" class="form-control col-md-7 col-xs-12" name="planHandled" 
              	data-validate-length-range="20" data-validate-words="1"   required="required"
              	placeholder="" type="text" value="${plan.planHandled }"> --%>
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="number">审核状态 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
             <input id="supportROM" class="form-control col-md-7 col-xs-12" name="" 
              	data-validate-length-range="20" data-validate-words="1"   required="required"
              	placeholder="" type="text" value="<c:if test="${plan.planAudit ==1 }">未审核</c:if><c:if test="${plan.planAudit ==2}">已审核</c:if>" readonly="readonly">
              		<input name="planAudit" type="hidden"  value="${plan.planExecute }">
            </div>
          </div>
          
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="number">执行状态 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
               <input id="supportROM" class="form-control col-md-7 col-xs-12" name="" 
              	data-validate-length-range="20" data-validate-words="1"   required="required"
              	placeholder="" type="text" value="<c:if test="${plan.planAudit ==1 }">未执行</c:if><c:if test="${plan.planAudit ==2}">已执行</c:if>" readonly="readonly">
              		<input name="planExecute" type="hidden"  value="${plan.planExecute }">
            </div>
          </div>
          
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="textarea">备注 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <textarea id="appInfo" name="planRemark"     required="required"
              placeholder="" class="form-control col-md-7 col-xs-12">${plan.planRemark }</textarea>
            </div>
          </div>
          <div class="form-group">
            <div class="col-md-6 col-md-offset-3">
              <button id="send" type="submit" class="btn btn-success">保存</button>
              <button type="button" class="btn btn-primary" id="back">返回</button>
              <br/><br/>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
<%@include file="common/footer.jsp"%>
<script src="${pageContext.request.contextPath }/statics/localjs/appinfomodify.js"></script>